﻿<%@ Page Language="C#" AutoEventWireup="true" Inherits="BaseData_UserMessageManagement" Codebehind="UserMessageManagement.aspx.cs" %>

<%@ Register Assembly="CutPageBar" Namespace="SiteCommon" TagPrefix="cc1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>留言管理</title>
</head>
<body>
    <form id="form1" runat="server">  
        <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>  
    <div align="Justify">
            <h2>留言管理</h2>
      <div class="juli"><asp:UpdatePanel ID="UpdatePanel1" runat="server" ChildrenAsTriggers="true">
            <ContentTemplate>
    <table class="tb" border="0" cellspacing="1" cellpadding="0">
    <asp:Repeater ID="rptMessage" runat="server" OnItemCommand="rptMessage_ItemCommand">
    <HeaderTemplate>
            <tr class="z1">
                <td class="zt3">
                    会员帐号
                </td>
                <td class="zt3">
                    关联订单
                </td>
                <td class="zt3">
                    商品编号
                </td>
                <td  class="zt3">
                    商品名称
                </td>
                <td  class="zt3">
                    留言标题
                </td>
                <td  class="zt3">
                    留言内容
                </td>
                <td  class="zt3">
                    回复内容
                </td>
                <td class="zt3">
                    客服
                </td>
                <td class="zt3">
                    奖罚积分

                </td>
                <td class="zt3">
                    状态

                </td>
                <td  class="zt3">
                    操作
                </td>
            </tr>
    </HeaderTemplate>
    <ItemTemplate>
            <tr class="z2">
                <td class="zt4">
                    <%#DataBinder.Eval(Container.DataItem, "UserId")%>
                </td>
                <td class="zt4">
                    <%#DataBinder.Eval(Container.DataItem, "BYZD1")%>
                </td>
                <td class="zt4">
                    <input type="hidden" id="messageId" value='<%#DataBinder.Eval(Container.DataItem,"MessageId") %>' />
                    <%#DataBinder.Eval(Container.DataItem,"GoodsId") %>
                </td>
                <td class="zt4">
                    <%# DataBinder.Eval(Container.DataItem, "UserIP")%>
                 </td>
                <td class="zt4">
                    <%# DataBinder.Eval(Container.DataItem, "Title")%>
                </td>
                <td class="zt4">
                    <%#getMessageContent(Convert.ToString( DataBinder.Eval(Container.DataItem, "MessageContent")))%>
                </td>
                <td class="zt4">
                    <%#getBackContent(Convert.ToString(DataBinder.Eval(Container.DataItem, "BackContent")))%>
                </td>
                <td class="zt4">
                    <%#getReplayContent(Convert.ToString( DataBinder.Eval(Container.DataItem, "ReplayUser")))%>
                </td>
                <td class="zt4">
                    <%#Convert.ToDecimal(DataBinder.Eval(Container.DataItem, "AddJF"))%>
                </td>
                <td class="zt4">
                    <%#getshowFlag(Convert.ToInt32(DataBinder.Eval(Container.DataItem, "ShowFlag")))%>
                </td>
                <td class="zt4">
                    <asp:LinkButton id="UnShow" runat="server"  CommandName='<%#DataBinder.Eval(Container.DataItem, "ShowFlag")%>' CommandArgument='<%#DataBinder.Eval(Container.DataItem, "MessageId")%>' Text='<%#getOperationshowFlag(Convert.ToInt32(DataBinder.Eval(Container.DataItem, "ShowFlag")))%>' />
                    <a id="Replay" href="UserMessageEdit.aspx?MessageId=<%#DataBinder.Eval(Container.DataItem, "MessageId")%>&productName=<%#System.Web.HttpUtility.UrlEncode(DataBinder.Eval(Container.DataItem, "UserIP").ToString())%>"  style='<%#DataBinder.Eval(Container.DataItem,"BYZD2").ToString()==""?"display:inline":"display:none" %>'>|回复</a>     
                </td>
            </tr>
    </ItemTemplate>
    </asp:Repeater>
    </table>
        <div style="padding-top:10px; float:right; padding-right:80px; width:360px;">
                    <cc1:CutPageBar ID="CutPageBar1" runat="server" BtnOk_Url="../images/btn_ok.gif" NextPage_Url="../images/next_page.gif" NextPageDark_Url="../images/next_page_dark.gif" OnOnPageIndexChanged="CutPageBar1_OnPageIndexChanged1" PrevPage_Url="../images/prev_page.gif" PrevPageDark_Url="../images/prev_page_dark.gif" PageSize="6" />
                </div>
            </ContentTemplate>
        </asp:UpdatePanel></div>
    </div>
    </form>
</body>
</html>
